package com.acme.bankapp.network;

import java.io.Serializable;

/**
 * Class wrapper for message which used to communicate between 
 * BankAcceptor and BankClient.
 * @author Alekov Andrey
 *
 */
public class Message implements Serializable{
	private static final long serialVersionUID = -8774630380495566878L;
	protected String header;
	protected String value;
	
	public Message(final String messageHeader, final String messageValue) {
		this.header = messageHeader;
		this.value = messageValue;
	}

	/**
	 * @return the header
	 */
	public String getHeader() {
		return header;
	}

	/**
	 * @param header the header to set
	 */
	public void setHeader(String header) {
		this.header = header;
	}

	/**
	 * @return the value
	 */
	public String getValue() {
		return value;
	}

	/**
	 * @param value the value to set
	 */
	public void setValue(String value) {
		this.value = value;
	}
	
	/**
	 * To String
	 */
	@Override
	public String toString() {
		return "Header: " + header + " Value: " + value;
	}
}	